package com.binary.coder.gift.core.infrastructure.po.bill;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author weitao
 */
@Data
@Builder
@TableName("account_record")
public class AccountRecord {

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 关联请柬
     */
    private Long posterId;

    /**
     * 账单类型：0-送礼 1-收礼
     */
    private Integer accountType;

    /**
     * 收礼人Id
     */
    private Long payeeId;

    /**
     * 收礼人姓名
     */
    private String payeeName;

    /**
     * 随礼人id
     */
    private Long payerId;

    /**
     * 随礼人姓名
     */
    private String payerName;

    /**
     * 关系类型
     */
    private Integer relationType;

    /**
     * 随礼金额 | 收礼金额
     */
    private BigDecimal amount;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 联系地址
     */
    private String address;

    /**
     * 随礼日期
     */
    private LocalDate dateOfGift;

    /**
     * 描述
     */
    private String description;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
